<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>组件测试页面</title>
    <meta name="divport" content="width=device-width, initial-scale=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="./elementUI/index.css">
    <link rel="stylesheet" href="../style/index.css">
</head>

<body>
    <div id="app">
        {{value}}
        <button @click="handle">跳转</button>
        <!-- <el-button @click="hanlde">导出</el-button>
        <el-upload class="upload-demo" accept=".xlsx" ref="upload" action="" :show-file-list="false"
            :on-change="handleChange" :auto-upload="false">
            <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
        </el-upload>
        <el-table :data="tableData" :span-method="objectSpanMethod" border style="width: 100%; margin-top: 20px">
            <el-table-column prop="id" label="商品名称" width="180">
            </el-table-column>
            <el-table-column prop="name" label="规格">
            </el-table-column>
            <el-table-column prop="amount1" label="采购价格">
            </el-table-column>
            <el-table-column prop="amount2" label="销售价格">
            </el-table-column>
            <el-table-column prop="amount3" label="库存数量">
            </el-table-column>
        </el-table> -->
    </div>
    <script src="../utils/jquery.min.js"></script>
    <script src="../utils/jquery.cookie.js"></script>
    <script src="../utils/vue.min.js"></script>
    <script src="../utils/vuex.min.js"></script>
    <script src="./elementUI/index.js"></script>
    <script src="../utils/utils.js"></script>
    <script src="../utils/compressor.js"></script>
    <script src="../utils/xlsx.full.min.js"></script>
    <script src="../utils/xlsx.core.min.js"></script>
    <script src="./component.js"></script>
    <script src="../config/config.js"></script>
    <script>
        new Vue({
            el: '#app',
            data() {
                return {
                    data: [],
                    value: 0
                }
            },
            mounted() {
                this.getData();
                $.ajax({
                    headers:{
                        // "Session":"session1",
                        "Content-Type" : "application/json;charset=UTF-8"
                    },
                    url: `http://127.0.0.1:8082/y/test5`,
                    type: 'POST',
                    data: "11" ,
                    success: function (res) {
                        console.log(res);
                    },
                    dataType: "json"
                });
            },
            methods: {
                getData() {
                    this.value = this.value + 1
                    console.log(this.value);
                },
                handle() {
                    $.ajax({
                        url: `https://service2.ediblefungus.cn/dayu/clientOperation/generalSaveForClient`,
                        type: 'POST',
                        data: {
                            Data: JSON.stringify({
                                Add: {
                                    water_irrigated_area: [{
                                        name: '11',
                                        lat_long: ''
                                    }]
                                }
                            })
                        },
                        success: function (IP) {
                            str = IP;
                        },
                        dataType: "text"
                    });
                }
            },
        })

    </script>
</body>

</html>